<template>
    <div>
        bbbb
        <h2>{{homeMsg}}</h2>
        <h3>{{EventBus}}</h3>
    </div>
</template>
<script>
import {EventBus} from '@/assets/js/eventBus.js';
export default {
    inject: ['for'],
    data(){
        return{
            homeMsg:this.for,
            EventBus:'',
        }
    },
    mounted(){
        EventBus.$on('addition', param => {
            this.EventBus = param.tip;
        })
    }
}
</script>